From 92a5e0aa06ea5016b038a59e205e615cb76fb45e Mon Sep 17 00:00:00 2001 From: Mark Bergsma Date: Sun, 15 Oct 2006 18:53:08 +0000 Subject: [PATCH] Change the HTCP purge method from 'NONE' to 'GET', to make HTCP purges work with Squid 2.6 again. --- includes/SquidUpdate.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/SquidUpdate.php b/includes/SquidUpdate.php index 37d97e0192..26e00e2464 100644 --- a/includes/SquidUpdate.php +++ b/includes/SquidUpdate.php @@ -222,8 +222,8 @@ class SquidUpdate { // Opcode 'CLR', no response desired, no auth $htcpTransID = rand(); - $htcpSpecifier = pack( 'na4na*na8n', - 4, 'NONE', strlen( $url ), $url, + $htcpSpecifier = pack( 'na3na*na8n', + 3, 'GET', strlen( $url ), $url, 8, 'HTTP/1.0', 0 ); $htcpDataLen = 8 + 2 + strlen( $htcpSpecifier ); -- 2.20.1